set(LLVM_LINK_COMPONENTS
  Support
  )

add_clang_unittest(FrontendTests
  ASTUnitTest.cpp
  CompilerInstanceTest.cpp
  FrontendActionTest.cpp
  CodeGenActionTest.cpp
  ParsedSourceLocationTest.cpp
  PCHPreambleTest.cpp
  )
target_link_libraries(FrontendTests
  PRIVATE
  clangAST
  clangBasic
  clangFrontend
  clangLex
  clangSema
  clangCodeGen
  )
